package com.wc.shj.controller;

import com.wc.shj.service.impl.UserServiceImpl;
import com.wc.shj.vo.ResultVO;
import com.wc.shj.vo.UserVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/manage")
public class UserController {
     @Resource
     private UserServiceImpl userService;
    @PostMapping("/login")
     public ResultVO adminLogin(UserVO userVO){
         ResultVO resultVO = userService.adminLogin(userVO);
         return ResultVO.success(resultVO);
     }

}
